package com.kim.weixinProject.jsdk.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.dms.ezplatform.weixin.WeixinAccess;

@Controller
@RequestMapping("/weixin/test")
public class JsSDKForwardAction{
	
	public static final String PAGE = "/test";
	
	@WeixinAccess
	@RequestMapping
	public @ResponseBody ModelAndView action(HttpServletRequest request, HttpServletResponse response){
		request.setAttribute("aaa", 111);
		request.setAttribute("bbb", 222);
		return new ModelAndView(PAGE);
	}

}
